package commands.controller;

/**
 * Request to delete file from shared files
 * @author Marcin Kamionowski
 */
public class CC_GUIDelShared extends ControllerCommand {

    final private String path;
    final private String filename;

    /**
     * Constructor
     * @param path Path containing file, which must be delete from shared
     * @param filename Name of file
     */
    public CC_GUIDelShared(String path, String filename) {
        super(ControllerCommandType.GUI_DEL_SHARED);
        this.path = path;
        this.filename = filename;
    }

    /**
     * Getter
     * @return Name of file
     */
    public String getFilename() {
        return filename;
    }

    /**
     * Getter
     * @return Path containing file, which must be delete from shared
     */
    public String getPath() {
        return path;
    }

    @Override
    public String toString() {
        StringBuilder toStringBuilder = new StringBuilder();
        toStringBuilder.append(super.toString());
        toStringBuilder.append("\n");
        toStringBuilder.append("\npath: ");
        toStringBuilder.append(path);
        toStringBuilder.append("\nfilename: ");
        toStringBuilder.append(filename);
        return toStringBuilder.toString();
    }
}
